{% extends "base_generic.html" %}
{% block content %}
  <div id="primaryContentContainer">
    <div id="primaryContent">
    {% if login %}<h2><a href="/tags//new/" class="add">Add new Tag ({{tags|length}})</a></h2>{% endif %}
    <table class="tablelist">
    <tr class="rowH"><th></th><th>Topic</th>{% if login %}<th>Edit</th><th>Delete</th>{% endif %}</tr>
    {% for tag in tags %}
      <tr class="{{forloop.counter|zebra}}">
        <td>{{forloop.counter}}</td>
        <td><a href="/vocabulary/tags/{{tag.url}}/{{lang}}">{{tag.name}}</a></td>
        {% if login %}<td><a href="/tags/{{tag.key}}/edit/"><img src="/img/edit.gif" border="0" /></a></td>
        <td><a href="/tags/{{tag.key}}/delete/" onclick="return confirm('are you sure do you want to delete \'{{tag.name}}\'?');"><img src="/img/delete.gif" border="0" /></a></td>{% endif %}
      </tr>
     {%endfor%}
      </table>
      </div>
    </div>
{% endblock %}
